package com.longma.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.longma.server.constant.enums.AlarmLevelEnum;
import com.longma.server.constant.enums.AlarmRecordStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author HAIBO
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AlarmRecord对象", description="")
public class AlarmRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "云仓id")
    private Integer yuncangId;

    @ApiModelProperty(value = "实际值")
    private Double value;

    @ApiModelProperty(value = "对应告警设置编号")
    private Integer alarmId;

    @ApiModelProperty(value = "报警详情")
    private String details;

    @ApiModelProperty(value = "报警名称")
    private String name;

    @ApiModelProperty(value = "报警时间")
    private LocalDateTime alarmTime;

    @ApiModelProperty(value = "已处理；处理单")
    private AlarmRecordStateEnum state;

    @ApiModelProperty(value = "报警级别,0提示，1次要，2重要，3严重")
    private AlarmLevelEnum level;
}
